package com.bw.module_store.api

import com.bw.lib_common.api.BaseApiServer
import com.bw.lib_common.entity.BaseResponse
import com.bw.module_store.entity.AddStoreParam
import com.bw.module_store.entity.AddStoreResult
import com.bw.module_store.entity.StoreDetailResult
import com.bw.module_store.entity.StoreResult
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path
import retrofit2.http.Query
/**
 * 智慧园区-01-商家推荐-v1.1-吴熙-20250511
 */
interface StoreApiServer: BaseApiServer {
    @GET("/api/enterprise-profiles")
    suspend fun getStoreList(): BaseResponse<List<StoreResult>>

    @GET("/api/enterprise-profiles/{id}")
    suspend fun getStoreDetail(@Path("id") storeId:Int):BaseResponse<StoreDetailResult>

    @POST("/api/merchant-applications")
    suspend fun addStoreIn(@Body addStoreParam: AddStoreParam):BaseResponse<AddStoreResult>

    @GET("/api/merchant-applications")
    suspend fun getMerchantList():BaseResponse<List<AddStoreResult>>

    @GET("/api/merchant-applications/{id}")
    suspend fun getMerchantDetail(@Path("id") merchantId:Int):BaseResponse<AddStoreResult>


}